<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 4.2.0">
  <link rel="apple-touch-icon" sizes="180x180" href="/xizhongren8980/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/xizhongren8980/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/xizhongren8980/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/xizhongren8980/images/logo.svg" color="#222">

<link rel="stylesheet" href="/xizhongren8980/css/main.css">


<link rel="stylesheet" href="/xizhongren8980/lib/font-awesome/css/all.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"gitee.com","root":"/xizhongren8980/","scheme":"Gemini","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":true,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},"path":"search.xml"};
  </script>

  <meta name="description" content="参考视频：https:&#x2F;&#x2F;www.bilibili.com&#x2F;video&#x2F;av84788338 突然在B站看到一个赶年兽，除病毒的搞笑视频动画，我觉得还挺好的，所以用代码实现了部分。">
<meta property="og:type" content="article">
<meta property="og:title" content="编码贺新年">
<meta property="og:url" content="https://gitee.com/xizhongren8980/xizhongren8980.git/2020/03/06/%E5%A4%A7%E6%88%98%E7%97%85%E6%AF%92%E6%90%9E%E7%AC%91%E5%8A%A8%E7%94%BB/index.html">
<meta property="og:site_name" content="一杯茶一包烟，一个BUG改一天">
<meta property="og:description" content="参考视频：https:&#x2F;&#x2F;www.bilibili.com&#x2F;video&#x2F;av84788338 突然在B站看到一个赶年兽，除病毒的搞笑视频动画，我觉得还挺好的，所以用代码实现了部分。">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2020-03-06T11:50:52.084Z">
<meta property="article:modified_time" content="2020-03-03T03:36:05.241Z">
<meta property="article:author" content="MisterTian">
<meta property="article:tag" content="Javafx">
<meta property="article:tag" content="GUI">
<meta property="article:tag" content="动画编程">
<meta property="article:tag" content="冠状病毒">
<meta name="twitter:card" content="summary">

<link rel="canonical" href="https://gitee.com/xizhongren8980/xizhongren8980.git/2020/03/06/%E5%A4%A7%E6%88%98%E7%97%85%E6%AF%92%E6%90%9E%E7%AC%91%E5%8A%A8%E7%94%BB/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-CN'
  };
</script>

  <title>编码贺新年 | 一杯茶一包烟，一个BUG改一天</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/xizhongren8980/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">一杯茶一包烟，一个BUG改一天</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
      <p class="site-subtitle" itemprop="description">收藏永不停止，学习永不开始</p>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
        <i class="fa fa-search fa-fw fa-lg"></i>
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="main-menu menu">
        <li class="menu-item menu-item-home">

    <a href="/xizhongren8980/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a>

  </li>
        <li class="menu-item menu-item-about">

    <a href="/xizhongren8980/about/" rel="section"><i class="fa fa-user fa-fw"></i>关于</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/xizhongren8980/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>标签</a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/xizhongren8980/categories/" rel="section"><i class="fa fa-th fa-fw"></i>分类</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/xizhongren8980/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档</a>

  </li>
      <li class="menu-item menu-item-search">
        <a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>搜索
        </a>
      </li>
  </ul>
</nav>



  <div class="search-pop-overlay">
    <div class="popup search-popup">
        <div class="search-header">
  <span class="search-icon">
    <i class="fa fa-search"></i>
  </span>
  <div class="search-input-container">
    <input autocomplete="off" autocapitalize="off"
           placeholder="搜索..." spellcheck="false"
           type="search" class="search-input">
  </div>
  <span class="popup-btn-close">
    <i class="fa fa-times-circle"></i>
  </span>
</div>
<div id="search-result">
  <div id="no-result">
    <i class="fa fa-spinner fa-pulse fa-5x fa-fw"></i>
  </div>
</div>

    </div>
  </div>

</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post posts-expand">
            

    
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://gitee.com/xizhongren8980/xizhongren8980.git/2020/03/06/%E5%A4%A7%E6%88%98%E7%97%85%E6%AF%92%E6%90%9E%E7%AC%91%E5%8A%A8%E7%94%BB/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/xizhongren8980/images/head.jpg">
      <meta itemprop="name" content="MisterTian">
      <meta itemprop="description" content="一个小菜鸟">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="一杯茶一包烟，一个BUG改一天">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          编码贺新年
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2020-03-06 19:50:52" itemprop="dateCreated datePublished" datetime="2020-03-06T19:50:52+08:00">2020-03-06</time>
            </span>
              <span class="post-meta-item">
                <span class="post-meta-item-icon">
                  <i class="far fa-calendar-check"></i>
                </span>
                <span class="post-meta-item-text">更新于</span>
                <time title="修改时间：2020-03-03 11:36:05" itemprop="dateModified" datetime="2020-03-03T11:36:05+08:00">2020-03-03</time>
              </span>

          

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <p>参考视频：<a href="https://www.bilibili.com/video/av84788338" target="_blank" rel="noopener">https://www.bilibili.com/video/av84788338</a></p>
<p>突然在B站看到一个赶年兽，除病毒的搞笑视频动画，我觉得还挺好的，所以用代码实现了部分。</p>
<a id="more"></a>
<p>由于目前只接触Javafx这一门GUI编程语言，加之还不太熟练使用，做出来的效果不是太好。</p>
<p>整个程序涉及的主要知识是时间线动画、位移动画、旋转动画、透明度动画、媒体类以及线程。</p>
<p>爆炸效果是运用的多张图片，以一个单独的线程运行它，调节他的休眠时间就可以达到比较好的爆炸效果了。</p>
<p><strong>特别注意：</strong></p>
<p>在使用媒体类播放音乐时，最好把MediaPlayer对象作为成员变量或者静态变量，这样就不会出现音乐播放几秒后就中断的情况。</p>
<p><strong>程序运行结果见B站</strong></p>
<p><a href="https://www.bilibili.com/video/av93166381" target="_blank" rel="noopener">https://www.bilibili.com/video/av93166381</a></p>
<p><strong>程序所需资源见仓库</strong></p>
<p><a href="https://github.com/MisterTian8980/PictureOfMyHexoBlog/tree/master/搞笑动画之冠状病毒" target="_blank" rel="noopener">https://github.com/MisterTian8980/PictureOfMyHexoBlog/tree/master/搞笑动画之冠状病毒</a></p>
<p><strong>源代码</strong></p>
<pre>
package NewYear;

import javafx.animation.*;
import javafx.application.Application;
import javafx.application.Platform;
import javafx.scene.Node;
import javafx.scene.Scene;
import javafx.scene.SceneAntialiasing;
import javafx.scene.SubScene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.layout.Pane;
import javafx.scene.media.Media;
import javafx.scene.media.MediaPlayer;
import javafx.stage.Stage;
import javafx.util.Duration;

import java.net.URL;
import java.util.ArrayList;
import java.util.Random;
import java.util.function.Consumer;

/**
 * @Auther: 戏中人
 * @Date: 2020/2/22 14:08
 * @Description:大战病毒
 */
public class NewYear extends Application {
    String s_end = NewYear.class.getResource("/NewYear/中国交响乐团 - 春节序曲.mp3").toString();
    Media media_end = new Media(s_end);
    MediaPlayer mediaPlayer_end = new MediaPlayer(media_end);

    String s1 = NewYear.class.getResource("/NewYear/boom2.wav").toString();
    String s2 = NewYear.class.getResource("/NewYear/liang_2.mp3").toString();
    String s3 = NewYear.class.getResource("/NewYear/move2.m4a").toString();
    Media media1 = new Media(s1);
    Media media2 = new Media(s2);
    Media media3 = new Media(s3);
    MediaPlayer mediaPlayer ;
    MediaPlayer mediaPlayer_shoot = new MediaPlayer(media2);

    Timeline timeline_bingdu = new Timeline();      //左边病毒出场
    Timeline timeline_Akfunny = new Timeline();     //右边角色出场
    Timeline tl = new Timeline();//控制右边角色攻击病毒时左右移动
    Timeline timeline_end = new Timeline();
    ArrayList<ParallelTransition> Pt_list = new ArrayList<>();//并行动画链表

    @Override
    public void start(Stage primaryStage) throws Exception {

        Pane root = new Pane();
        root.setPrefSize(1000,550);
        root.setId("root");

        Node node = view(primaryStage);
        root.getChildren().addAll(node);

        Scene scene = new Scene(root,1000,550);
        URL url = this.getClass().getClassLoader().getResource("NewYear/NewYear.css");//添加css样式的路径
        scene.getStylesheets().add(url.toExternalForm());
        primaryStage.setScene(scene);
        primaryStage.setResizable(false);
        primaryStage.setTitle("新年快乐");
        primaryStage.show();
    }

    public Node view(Stage stage) {

        Thread thread = new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println(111);
            }
        });

        Random random = new Random();       //随机时间点
        Pane pane1 = new Pane();        //存放爆炸效果
        Pane pane2 = new Pane();        //存放左边角色
        Pane pane3 = new Pane();        //存放右边角色
        Button bt = new Button("开启新年好运");
        bt.setPrefSize(200,60);
        bt.setLayoutX(400);
        bt.setLayoutY(480);
        /*结束*/
        Label label = new Label("祝大家鼠年吉祥");
        label.setLayoutX(-280);
        label.setLayoutY(190);
        Label label1 = new Label("身体健康，万事如意");
        label1.setLayoutX(-400);
        label1.setLayoutY(260);
        Label label2 = new Label("PS：勤洗手、少扎堆、戴口罩");
        label2.setId("PS");
        label2.setLayoutX(-345);
        label2.setLayoutY(330);
        KeyValue kv11 = new KeyValue(label.translateXProperty(),0);
        KeyValue kv22 = new KeyValue(label1.translateXProperty(),0);
        KeyValue kv33 = new KeyValue(label2.translateXProperty(),0);
        KeyFrame keyFrame = new KeyFrame(Duration.seconds(0),kv11,kv22,kv33);
        KeyValue kv44 = new KeyValue(label.translateXProperty(),400);
        KeyValue kv55 = new KeyValue(label1.translateXProperty(),480);
        KeyValue kv66 = new KeyValue(label2.translateXProperty(),435);
        KeyFrame keyFrame2 = new KeyFrame(Duration.seconds(3),kv44,kv55,kv66);
        timeline_end.getKeyFrames().addAll(keyFrame, keyFrame2);

        Image[] images = new Image[16];
        images[1] = new Image("NewYear/explode/e1.gif");
        images[2] = new Image("NewYear/explode/e2.gif");
        images[3] = new Image("NewYear/explode/e3.gif");
        images[4] = new Image("NewYear/explode/e4.gif");
        images[5] = new Image("NewYear/explode/e5.gif");
        images[6] = new Image("NewYear/explode/e6.gif");
        images[7] = new Image("NewYear/explode/e7.gif");
        images[8] = new Image("NewYear/explode/e8.gif");
        images[9] = new Image("NewYear/explode/e9.gif");
        images[10] = new Image("NewYear/explode/e10.gif");
        images[11] = new Image("NewYear/explode/e11.gif");
        images[12] = new Image("NewYear/explode/e12.gif");
        images[13] = new Image("NewYear/explode/e13.gif");
        images[14] = new Image("NewYear/explode/e14.gif");
        images[15] = new Image("NewYear/explode/e15.gif");

        Image img1 = new Image("NewYear/imgs/bingdu.png");
        ImageView iv1 = new ImageView(img1);
        iv1.setFitHeight(300);
        iv1.setLayoutX(-200);       //左边病毒初始位置
        iv1.setLayoutY(180);
        iv1.setPreserveRatio(true);
//        Image img2 = new Image("NewYear/imgs/AKFunny.png");
        Image img2 = new Image("NewYear/imgs/Funny2.png");
        ImageView iv2 = new ImageView(img2);
        iv2.setFitHeight(200);
        iv2.setLayoutX(1200);        //右边角色初始位置
        iv2.setLayoutY(250);
        iv2.setPreserveRatio(true);
        pane2.getChildren().addAll(iv1);
        pane3.getChildren().addAll(iv2,label,label1,label2);

        int location_x,location_y;      //菜刀的坐标
        ArrayList<ImageView> list = new ArrayList<>();
        for (int i = 0; i < 10; i++) {
            ImageView iv = new ImageView("NewYear/imgs/caidao.png");
            location_x = 800;
            location_y = 320;
            iv.setFitHeight(50);
            iv.setPreserveRatio(true);
            iv.setLayoutX(location_x);
            iv.setLayoutY(location_y);
            iv.setOpacity(0);
            list.add(iv);
        }
        pane2.getChildren().addAll(list);       //把菜刀图片添加到面板

        Pane root = new Pane();
        root.setStyle("-fx-background-color: #ffffff00");
        root.getChildren().addAll(pane2,pane3,pane1,bt);
        SubScene subScene = new SubScene(root,1000,550,false, SceneAntialiasing.DISABLED);

        //爆炸效果
        Thread thread1 = new Thread(new Runnable() {
            @Override
            public void run() {
                try {
                    for (int i = 1; i < images.length; i++) {
                        ImageView iv = new ImageView(images[i]);
                        iv.setFitHeight(350);
                        iv.setLayoutY(180);
                        iv.setLayoutX(30);
                        iv.setPreserveRatio(true);
                        Platform.runLater(new Runnable() {
                            @Override
                            public void run() {
                                pane1.getChildren().clear();
                                pane1.getChildren().add(iv);
                            }
                        });
                        Thread.sleep(100);
                    }
                    System.out.println(111);
                    mediaPlayer_end.setVolume(0.1);
                    mediaPlayer_end.play();
                    timeline_end.play();
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        });
        //出场
        bt.setOnAction(event -> {
            mediaPlayer = new MediaPlayer(media3);
            mediaPlayer.play();
            timeline_Akfunny.play();        //右边角色出场
            root.getChildren().remove(bt);  //移除按钮
        });

        list.forEach(new Consumer<ImageView>() {
            @Override
            public void accept(ImageView view) {

                double time = random.nextDouble()*0.9;
                TranslateTransition tt = new TranslateTransition(Duration.seconds(time));//位移动画
                tt.setFromX(view.getTranslateX());
                tt.setFromY(view.getTranslateY());
                tt.setByX(-650);//增量

                RotateTransition rt = new RotateTransition(Duration.seconds(time));//旋转动画
                rt.setFromAngle(0);
                rt.setToAngle(-360*3);

                FadeTransition ft1 = new FadeTransition(Duration.seconds(time/2));//透明度动画
                ft1.setFromValue(0);
                ft1.setToValue(1);

//                FadeTransition ft2 = new FadeTransition(Duration.seconds(time/2));
//                ft2.setFromValue(1);
//                ft2.setToValue(0);

                SequentialTransition st = new SequentialTransition();//串行动画
                st.getChildren().addAll(ft1);

                ParallelTransition pt = new ParallelTransition();//并行动画
                pt.setNode(view);
                pt.getChildren().addAll(tt,rt,st);
                pt.setCycleCount(5);
                Pt_list.add(pt);
            }
        });

        /*控制右边角色左右移动*/
        KeyValue kv1 = new KeyValue(iv2.translateXProperty(),-430);
        KeyFrame kf1 = new KeyFrame(Duration.seconds(0), kv1);
        KeyValue kv2 = new KeyValue(iv2.translateXProperty(),-480);
        KeyFrame kf2 = new KeyFrame(Duration.seconds(0.7), kv2);
        tl.getKeyFrames().addAll(kf1, kf2);
        tl.setAutoReverse(true);
        tl.setCycleCount(5);
        //左右移动完病毒爆炸消失
        tl.setOnFinished(event -> {
            thread1.start();
            mediaPlayer = new MediaPlayer(media1);
            mediaPlayer.play();          //爆炸音效
            pane2.getChildren().clear();        //清除左边病毒
        });

        /*右边出场*/
        KeyValue kv1_Akfunny = new KeyValue(iv2.translateXProperty(), 0);
        KeyFrame kf1_Akfunny = new KeyFrame(Duration.seconds(0), kv1_Akfunny);
        KeyValue kv2_Akfunny = new KeyValue(iv2.translateXProperty(),-450);
        KeyFrame kf2_Akfunny = new KeyFrame(Duration.seconds(2),kv2_Akfunny);
        timeline_Akfunny.getKeyFrames().addAll(kf1_Akfunny, kf2_Akfunny);
        timeline_Akfunny.setCycleCount(1);
        timeline_Akfunny.setOnFinished(event -> {
            mediaPlayer = new MediaPlayer(media3);
            mediaPlayer.play();
            timeline_bingdu.play();     //出场结束后接着病毒出场
        });

        /*病毒出场*/
        KeyValue kv1_bingdu = new KeyValue(iv1.translateXProperty(), iv1.getTranslateX());
        KeyFrame kf1_bingdu = new KeyFrame(Duration.seconds(0),kv1_bingdu);
        KeyValue kv2_bingdu = new KeyValue(iv1.translateXProperty(), 250);
        KeyFrame kf2_bingdu = new KeyFrame(Duration.seconds(2),kv2_bingdu);
        timeline_bingdu.getKeyFrames().addAll(kf1_bingdu, kf2_bingdu);
        timeline_bingdu.setCycleCount(1);
        timeline_bingdu.setOnFinished(event -> {
            tl.play();      //出场结束后开始攻击病毒
            mediaPlayer_shoot.play();
            /*攻击病毒*/
            Pt_list.forEach(new Consumer<ParallelTransition>() {
                @Override
                public void accept(ParallelTransition parallelTransition) {
                    parallelTransition.play();
                }
            });
        });
        return subScene;
    }
}

</pre>
    </div>

    
    
    

      <footer class="post-footer">
          <div class="post-tags">
              <a href="/xizhongren8980/tags/Javafx/" rel="tag"># Javafx</a>
              <a href="/xizhongren8980/tags/GUI/" rel="tag"># GUI</a>
              <a href="/xizhongren8980/tags/%E5%8A%A8%E7%94%BB%E7%BC%96%E7%A8%8B/" rel="tag"># 动画编程</a>
              <a href="/xizhongren8980/tags/%E5%86%A0%E7%8A%B6%E7%97%85%E6%AF%92/" rel="tag"># 冠状病毒</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/xizhongren8980/2020/03/06/%E9%A3%98%E8%90%BD%E5%8A%A8%E7%94%BB/" rel="prev" title="Javafx制作飘落动画">
      <i class="fa fa-chevron-left"></i> Javafx制作飘落动画
    </a></div>
      <div class="post-nav-item">
    <a href="/xizhongren8980/2020/03/06/%E6%8B%BC%E5%9B%BE%E5%B0%8F%E6%B8%B8%E6%88%8F/" rel="next" title="Javafx实现拼图小游戏（简易版）">
      Javafx实现拼图小游戏（简易版） <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  



          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="MisterTian"
      src="/xizhongren8980/images/head.jpg">
  <p class="site-author-name" itemprop="name">MisterTian</p>
  <div class="site-description" itemprop="description">一个小菜鸟</div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/xizhongren8980/archives/">
        
          <span class="site-state-item-count">57</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/xizhongren8980/categories/">
          
        <span class="site-state-item-count">7</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/xizhongren8980/tags/">
          
        <span class="site-state-item-count">101</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>


  <div class="links-of-blogroll motion-element">
    <div class="links-of-blogroll-title"><i class="fa fa-link fa-fw"></i>
      友情链接
    </div>
    <ul class="links-of-blogroll-list">
        <li class="links-of-blogroll-item">
          <a href="https://mistertian8980.github.io/" title="https:&#x2F;&#x2F;mistertian8980.github.io&#x2F;" rel="noopener" target="_blank">Github博客</a>
        </li>
    </ul>
  </div>

      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2020</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">MisterTian</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Gemini</a> 强力驱动
  </div>

        








      </div>
    </footer>
  </div>

  
  <script size="300" alpha="0.6" zIndex="-1" src="/xizhongren8980/lib/canvas-ribbon/canvas-ribbon.js"></script>
  <script src="/xizhongren8980/lib/anime.min.js"></script>
  <script src="/xizhongren8980/lib/velocity/velocity.min.js"></script>
  <script src="/xizhongren8980/lib/velocity/velocity.ui.min.js"></script>

<script src="/xizhongren8980/js/utils.js"></script>

<script src="/xizhongren8980/js/motion.js"></script>


<script src="/xizhongren8980/js/schemes/pisces.js"></script>


<script src="/xizhongren8980/js/next-boot.js"></script>


  <script defer src="//cdn.jsdelivr.net/gh/theme-next/theme-next-three@1/three.min.js"></script>
    <script defer src="//cdn.jsdelivr.net/gh/theme-next/theme-next-three@1/canvas_lines.min.js"></script>


  




  
<script src="/xizhongren8980/js/local-search.js"></script>













  

  

</body>
</html>
